package com.service.impl;

import java.util.List;

import com.dao.IRoleDao;
import com.model.Role;
import com.service.IRoleService;

public class RoleServiceImpl implements IRoleService {
	
	private IRoleDao roleDao;
	
	public void setRoleDao(IRoleDao roleDao) {
		this.roleDao = roleDao;
	}

	@Override
	public void save(Role role) {
		roleDao.save(role);		
	}

	@Override
	public List<Role> getAll() {
		return roleDao.getAll();
	}

	@Override
	public void add(Role role) {
		roleDao.save(role);
	}

	@Override
	public void delete(Integer id) {
		roleDao.delete(id);		
	}

	@Override
	public Role get(Integer id) {
		return roleDao.get(id);
	}

	@Override
	public void update(Role role) {
		roleDao.update(role);
	}

}
